package edu.sctu.practice.class02.lvchang.test10;

/**
 * Created by Administrator on 2015/10/16.
 */
public class Addtion {

    public int Add(int a, int b) {

        System.out.println(a + b);
        return a + b;

    }

    public long Add(long a, long b) {

        System.out.println(a + b);
        return a + b;

    }

    public float Add(float a, float b) {

        System.out.println(a + b);
        return a + b;

    }

    public double Add(double a, double b) {

        System.out.println(a + b);
        return a + b;

    }

    public String Add(String a, String b) {

        System.out.println(a + b);
        return a + b;

    }

    public static void main(String[] args) {

        Addtion addtion = new Addtion();

        addtion.Add(12, 23);
        addtion.Add(122l, 555l);
        addtion.Add(6.5f, 5.3f);
        addtion.Add(2.66, 23.33);
        addtion.Add("Hello ", "world!");
    }
}
